<?php
$pageTitle = __('Browse Collections');
head(array('title' => $pageTitle, 'bodyid'=>'collections'));
?>

<div id="secondary">
	<?php echo secondary_poincare();?>
</div>

<h1><?php echo $pageTitle; ?></h1>
<div id="primary" class="type-list">
	<div class="pagination"><?php echo pagination_links(); ?></div>

  <?php while (loop_collections()): ?>
  <div class="collection">
		<h2><?php echo collection('Name'); ?></h2>

        <div class="view-items-link">
					<?php if($desc = collection('Description')) echo $desc; ?>
        	<?php
        	echo link_to_browse_items(__('Voir', collection('Name')), array('collection' => collection('id')));
        	echo ' ('.total_items_in_collection().')';
        	?>
        </div>

        <?php /*if(collection_has_collectors()): ?>
        <div class="item-description">
					<b><?php echo __('Collector(s)'); ?></b> :
          <?php echo collection('Collectors', array('delimiter'=>', ')); ?>
        </div>
        <?php endif;*/ ?>


        <?php echo plugin_append_to_collections_browse_each(); ?>

	</div><!-- end class="collection" -->
	<?php endwhile; ?>

	<?php echo plugin_append_to_collections_browse(); ?>
</div><!-- end primary -->

<?php foot(); ?>
